﻿using System;
using System.Linq;
using System.Linq.Expressions;
using RailNet.Dao.Entity;

namespace RailNet.Dao.Repository
{
    public interface IRelationDescriptionRepository
    {
        IQueryable<RelationDescription> All { get; }

        IQueryable<RelationDescription> AllIncluding(
            params Expression<Func<RelationDescription, object>>[] includeProperties);

        RelationDescription Find(long id);
        void InsertOrUpdate(RelationDescription relationdescription);
        void Delete(long id);
        void Save();
    }
}